import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "../Public/SeqIntHelper";
import { SeqPublicMiniPlayerHelper } from "../Public/SeqPublicMiniPlayerHelper";
type int = number;
//class SPartnerInfo
    
    export  class SPartnerInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPartnerInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqIntHelper.write(arg1, this.heterosexualFriendPlayerIds);
            SeqPublicMiniPlayerHelper.write(arg1, this.cityPlayers);
            SeqPublicMiniPlayerHelper.write(arg1, this.friendPalyers);
            SeqPublicMiniPlayerHelper.write(arg1, this.onlinePalyers);
            arg1.writeBool(this.firstTime);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.heterosexualFriendPlayerIds = SeqIntHelper.read(arg1);
            this.cityPlayers = SeqPublicMiniPlayerHelper.read(arg1);
            this.friendPalyers = SeqPublicMiniPlayerHelper.read(arg1);
            this.onlinePalyers = SeqPublicMiniPlayerHelper.read(arg1);
            this.firstTime = arg1.readBool();
            return;
        }

        public /* const */_type: int=20542;

        public /* var */heterosexualFriendPlayerIds: Array<any>;

        public /* var */cityPlayers: Array<any>;

        public /* var */friendPalyers: Array<any>;

        public /* var */onlinePalyers: Array<any>;

        public /* var */firstTime: Boolean;

        public static /* var */_regist: SPartnerInfo;
    }

            SPartnerInfo._regist = new SPartnerInfo(true);
        